package com.eric.domain.po;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("baseroles")
public class BaseRoles implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 权限_id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 权限名称

     */
    private String baseroles;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 状态显示
     1:正常
     2:冻结

     */

    private Status status;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;

    /**
     * 删除状态

     */
    @TableLogic
    private Integer deleted;
}
